<template>
  <div class="dashboard">
    {{ time | formt }}
    <WorkTime v-model="time" />
  </div>
</template>
<script>
import WorkTime from './components/workTime.vue'
import dayjs from 'dayjs'
export default {
  name: '',
  components: { WorkTime },
  filters: {
    formt(t) {
      return dayjs(t).format('YYYY-MM-DD')
    }
  },
  data() {
    return {
      time: new Date('2020-10-10'),
      t: ''
    }
  }
}
</script>
<style scoped lang="scss">
.dashboard {
  padding: 20px;
}
</style>
